{% extends "base.html" %}
{% block title %}Host {{ host.name }} Alias list{% endblock %}
{% block list %}
<br>
<h2>Aliases host {{ host.name }}</h2>
<table width="80%">
<tr>
    <th width="90%">web alias</th>
    <th>operation</th>
</tr>
{% for alias in host_aliases_list %}
<tr>
  <td>{{ alias.name }}</td>
  <td>
  		<form action="{{ alias.get_absolute_url }}" method="post">
  			<input type="submit" value="Delete">
		</form>
	</td>
</tr>
{% endfor %}
</table>
{% if message %}
    {% if status %}
        Operation Success! {{ message }}<br>
    {% else %}
        Operation Failed! {{ message }}<br>
    {% endif %}
{% endif %}
<br>
{% endblock %}
{% block actions %}
    <form action="add" method=POST>
        {{ form.host }}
        <input type="submit" name="addhost" value="Add alias">
    </form>
<a href="{% url hosts.views.list_hosts %}">Back</a>
{% endblock %}
